<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="c-community_id" class="control-label col-xs-12 col-sm-2">{:__('Community_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select class="form-control" id="c-community_id" data-rule="required" name="row[community_id]">
                {foreach name="community" item="vo"}
                <option value="{$vo.code}">
                    {$vo.name}
                </option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label for="c-factory_name" class="control-label col-xs-12 col-sm-2">{:__('Factory_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-factory_name" data-rule="required" class="form-control" name="row[factory_name]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label for="c-status" class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-status" data-rule="required" class="form-control" name="row[status]">
                <option value="0">
                    禁用
                </option>
                <option value="1">
                    可租
                </option>
                <option value="2">
                    已租
                </option>
            </select>
<!--            <input id="c-status" data-rule="required" class="form-control" name="row[status]" type="number">-->
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
